import { memo } from "react";
import './index.scss';

interface DescriptionItemProps {
    title: React.ReactNode;
    content?: React.ReactNode;
}

/**
 *  表单详情展示
 * @returns 
 */
const DescriptionItem = memo(
    ({ title, content }: DescriptionItemProps) => (
        <div className="desc-wrapper">
        <p className="desc-label">{title}:</p>
        {content}
        </div>
    )
);

export default DescriptionItem;